<template>
	<view class="rich-text">
		<!-- <view v-html="htmlValue"></view> -->
		<rich-text :nodes="htmlValue"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				htmlValue: ''
			}
		},
		async onLoad() {
			let res = await this.$api.get({
				url: '/wanlshop/article/getByKey?key=coupon_usage_rule',
			})
			console.log('优惠券规则', res)
			this.htmlValue = res.data.content || '';
		}
	}
</script>


<style lang="scss" scoped>
	.rich-text{
		color: $font-color-dark;
		line-height: 1.5rem;
		padding: 18rpx 30rpx;
		box-sizing: border-box;
		font-size: 26rpx;
	}
</style>